@import "~common/css/_variables.scss";

.menu {
  width: 200px;
  height: 100%;
  font-size: $fz14;
  border-right: 1px solid #e5e6ea;

  .menu_list {
    width: 100%;

    .menu_a {
      display: block;
      position: relative;

      &:not(:first-child) {
        margin-top: 1px;
      }

      li {
        position: relative;
        line-height: 40px;
        padding-left: 20px;
        position: relative;
        font-weight: 500;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
      }

      &:before,
      &:after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        height: 0;
        width: 4px;
        background-color: $color !important;
        transition: 400ms ease all;
      }

      &:after {
        top: inherit;
        left: 0;
        bottom: 0;
      }

      &:hover {
        color: $color !important;
        background-color: #F5F5F6;

        &:before,
        &:after {
          height: 20px;
          background-color: $color9;
          transition: 400ms ease all;
        }
      }
    }

    h3 {
      padding-left: 10px;
      line-height: 50px;
      color: $c999;
    }
  }

  .menu_list_active {
    position: relative;
    color: $color !important;
    background-color: #F5F5F6;

    &:before,
    &:after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      height: 20px !important;
      width: 4px;
      background-color: $color !important;
    }

    &:after {
      top: inherit;
      left: 0;
      bottom: 0;
    }
  }
}